<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/temp.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>temp</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
.ListStyle {font-family: Arial, Helvetica, sans-serif}
.STYLE4 {font-size: 10px}
.STYLE7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.forLink {font-size: 24px }
.STYLE10 {font-family: Arial, Helvetica, sans-serif; font-size: 24px; }
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:active {text-decoration: none;}
a:hover {text-decoration: none;}
-->

</style>
</head>

<body  style="background-image:url(../../images/websitebackgrund.png);">
<table width="802" border="0" align="center">
<tr><td colspan="4"><a href="../User/userlogin.php" class="STYLE7"><img src="../../images/logo.jpg" alt="Home Page"  border="0" /></a> 
  
    </td>
</tr>

  <tr>
  <td width="175" ><div align="center"><a href="../User/userlogin.php" class="STYLE10">User Login</a> </div></td>
    <td width="305"><div align="center"><a href="../SuperUser/superUserLogin.php" class="STYLE10">Super User Login</a> </div></td>
    <td width="232"><div align="center"><a href="managerLogin.php" class="STYLE10">Manager Login</a> </div></td>
    <td width="291"><div align="center"><a href="../Admin/adminLogin.php" class="STYLE10">Adminster Login</a> </div></td>
  </tr>  <tr>
    <td >&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- InstanceBeginEditable name="EditRegion" -->
<p>
  <?php 
    include ("../../Connections/cpsms.php");
 	$query = "select * from tempusers;";
	$sql = mysql_query($query) or die(mysql_error());
	$array = mysql_fetch_array($sql);

?>
</p>
<table width="888" border="0">
  <tr>
    <td width="882"><table width="929" height="24" border="1" cellspacing="0">
      <tr>
        <td width="56" height="22" class="STYLE3" ><strong>PoliceID</strong></td>
        <td width="81" class="STYLE3" ><strong>ArchiveName</strong></td>
        <td width="42" class="STYLE3" ><strong>Gender</strong></td>
        <td width="86" class="STYLE3" ><strong>DOB</strong></td>
        <td width="28" class="STYLE3" ><strong>Rank</strong></td>
        <td width="70" class="STYLE3" ><strong>BirthPlace</strong></td>
        <td width="35" class="STYLE3" ><strong>Ethic</strong></td>
        <td width="70" class="STYLE3"><strong>Background</strong></td>
        <td width="105" class="STYLE3"><strong>CurrentPosition</strong></td>
        <td width="63" class="STYLE3" ><strong>ArchiveNo</strong></td>
        <td width="98" class="STYLE3" ><strong>PoliceWorkDate</strong></td>
        <td width="49" class="STYLE3" ><strong>details</strong></td>
        <td width="42" class="STYLE3" ><strong>add</strong></td>
        <td width="42" class="STYLE3" ><strong>delete</strong></td>
      </tr>
      <?PHP
   while($array){
      $archiveid = $array['tArchiveid'];
      $birthplace = $array['tBirthplace'];
      $CurrentPosition = $array['tCurrentPosition'];
      $DOB = $array['tDOB'];
      $Ethic = $array['tEthic'];
	  $FirstEducation = $array['tFirstEducation'];
      $HighestAcademicInstitution = $array['tHighestAcademicInstitution'];
      $HighestEducation = $array['tHighestEducation'];
      $loginname = $array['tloginname'];
      $PartyDate = $array['tPartyDate'];
	  $loginpassword = $array['tloginpassword'];
      $photo = $array['tphoto'];
      $PoliceIDNo = $array['tPoliceIDNo'];
      $PoliceWorkDate = $array['tPoliceWorkDate'];
      $Political = $array['tPolitical'];
      $Rank = $array['tRank'];
	  $username = $array['tusername'];
	  $WorkDate = $array['tWorkDate'];
	  
	  if($array['tGender'] == 1)
	  {$Gender = "Mail";}
	  else if($array['tGender'] == 0)
	  {$Gender = "Femail";}
	  else 
	  {$Gender = "";}

      echo ("<tr><td>" .$PoliceIDNo ."</td><td>" .$username ."</td><td>" .$Gender ."</td><td>" .$DOB ."</td><td>" .$Rank ."</td><td>" .$birthplace ."</td><td>" .$Ethic ."</td><td>" .$Political ."</td><td>" .$CurrentPosition ."</td><td>" ."PC".$archiveid ."</td><td>" .$WorkDate ."</td><td ><a href='TempUserDetails.php?id=".$archiveid ."'>details</a></td><td ><a href='../../ucm/UCManager/UCAddUser.php?id=".$archiveid ."'>ADD</a></td><td ><a href='../../ucm/UCManager/UCDeleteTempSuper.php?id=".$archiveid ."'>Delete</a></td></tr>");
      $array = mysql_fetch_array($sql);
   }
?>
    </table></td>
  </tr>
  <tr>
    <td><table width="233" border="0" align="right">
      <tr>
        <td width="109" height="25">&nbsp;</td>
        <td width="24">&nbsp;</td>
        <td width="24">&nbsp;</td>
        <td width="58"><form id="form4" name="form4" method="post" action="../Manager/ShowUser.php">
          <div align="right">
            <input type="submit" name="Submit4" value="Cancel" />
          </div>
        </form></td>
      </tr>
    </table></td>
  </tr>
</table>
<p></p>
<?PHP
if ($_GET[id]== 1){
      echo "<script language='javascript'>"; 
      echo "alert('Delete tempUser Success!');"; 
      echo "</script>";
}else if ($_GET[id]== 2){
      echo "<script language='javascript'>"; 
      echo "alert('Add user success!');"; 
      echo "</script>";
}
 ?>
<!-- InstanceEndEditable --> <div class="ListStyle STYLE4" style="background:#51A2B9">Copyright 2010_CP3047_G24   | E-mail:<a href="mailto:xiaoguang.bian@gmail.com">xiaoguang.bian@gmail.com</a> | Address: BJUT,chaoyangqu 100,Beijing. 10022
</div>
</body>
<!-- InstanceEnd --></html>
